import Layout from '@/layout';

const commentRouter = {
  path: '/comment',
  component: Layout,
  redirect: '/comment/list',
  name: 'Comment',
  children: [
    {
      path: 'list',
      name: 'CommentList',
      component: () => import('@/views/comment/list'),
      meta: { title: '我的评论', icon: 'comment'}
    },
    /*     {
      path: 'create',
      name: 'CommentCreate',
      component: () => import('@/views/comment/form'),
      meta: { title: '添加评论', icon: 'add' },
    },  */
    {
      path: 'edit/:id',
      name: 'CommentEdit',
      component: () => import('@/views/comment/form'),
      meta: { title: '修改评论', noCache: true },
      hidden: true
    }
  ]
};

export default commentRouter;
